package com.ktgj.sms.api;

import com.ktgj.common.core.constant.ServiceNameConstants;
import com.ktgj.common.core.domain.R;
import com.ktgj.sms.api.domain.SmsTemplate;
import com.ktgj.sms.api.factory.RemoteSmsTemplateFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 短信模板服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteSmsTemplateService", value = ServiceNameConstants.SMS_SERVICE, fallbackFactory = RemoteSmsTemplateFallbackFactory.class)
public interface RemoteSmsTemplateService
{
    /**
     * 通过短信模板id查询模板详情信息
     *
     * @param smsTemplateId 模板id
     * @return 结果
     */
    @GetMapping(value = "/template/getTemplateBySmsTemplateId")
    public R<SmsTemplate> getTemplate(@RequestParam("smsTemplateId") Long smsTemplateId);
}
